<?php
//公共配置
$this->group(['domain' => env('DOMAIN_ADMIN'),'prefix' => 'config/config/'], function() {

    $this->get('/view', 'ConfigController@getConfig');
    //获取当前某个配置
    $this->get('/view/{id}', 'ConfigController@getOne')->where('id','[0-9]+');
    //获取某个key所有值
    $this->get('/view/key', 'ConfigController@getKey');

    $this->get('/view/list', 'ConfigController@getLists');

    $this->post('/update', 'ConfigController@updateConfig');

    $this->delete('/delete/{id}', 'ConfigController@deleteOne')->where('id','[0-9]+');
});
